import { useStore } from "vuex";
//  添加与播放时的提示版
export default function () {
    const store = useStore();
    let setTime = null;
    function tip(tipString) {
        clearTimeout(setTime);
        store.commit("SongList/changeSonglistTip", { flag: true, tipString });
        setTime = setTimeout(() => {
            store.commit("SongList/changeSonglistTip", { flag: false, tipString });
            setTime = null;
        }, 1500)
    }
    return tip
}